👀 Reading hidden code
import Pkg
👀 Reading hidden code
Activating project at `~/.julia/environments/v1.7`
The package MarkdownLiteral.jl could not load because it failed to initialize.
That's not nice! Things you could try:
- Restart the notebook.
- Try a different Julia version.
- Contact the developers of MarkdownLiteral.jl about this error.
You might find useful information in the package installation log:
👀 Reading hidden code
using MarkdownLiteral : @markdown
Hey! This is some text. Can you read me?
Plain text looks a bit boring...
👀 Reading hidden code
Text("""
Hey! This is some text. Can you read me?
Plain text looks a bit boring...
""")
Another cell defining @markdown contains errors.
@markdown("""
# MarkdownLiteral.jl
The macro `@markdown` lets you write [Markdown](https://www.markdownguide.org/getting-started/) inside Pluto notebooks. *Here is an example:*
""")
👀 Reading hidden code
Another cell defining @markdown contains errors.
@markdown("""
<p>
The macro <code>@markdown</code> lets you write <a href="https://developer.mozilla.org/docs/Web/HTML">HTML</a> inside Pluto notebooks.
<em>Here is an example:</em>
</p>
""")
👀 Reading hidden code
Another cell defining @markdown contains errors.
computer bad, you GREAT!
@markdown("""
Did you see that? It is the same macro!
""")
👀 Reading hidden code
"Frances Ha"
"Noah Baumbach"
2012
"Portrait de la jeune fille en feu"
"Céline Sciamma"
2019
"De noorderlingen"
"Alex van Warmerdam"
1992
films = [
(title="Frances Ha", director="Noah Baumbach", year=2012)
(title="Portrait de la jeune fille en feu", director="Céline Sciamma", year=2019)
(title="De noorderlingen", director="Alex van Warmerdam", year=1992)
]
👀 Reading hidden code
Another cell defining @markdown contains errors.
You got this!
@markdown("""
My films:
$([
"- **$(f.title)** ($(f.year)) by _$(f.director)_\n"
for f in films
])
""")
👀 Reading hidden code
Another cell defining @markdown contains errors.
@markdown("""
<ul>
$([
@markdown("<li>
<b>$(f.title)</b> ($(f.year)) by <em>$(f.director)</em>
</li>")
for f in films
])
</ul>
""")
👀 Reading hidden code
"Info"
false
"Alert"
true
"Update"
false
logs = [
(text="Info", urgent=false),
(text="Alert", urgent=true),
(text="Update", urgent=false),
]
👀 Reading hidden code
Another cell defining @markdown contains errors.
uhmmmmmm??!
@markdown("$((
@markdown("<div style=$((
color="darkblue",
background=log.urgent ? "pink" : "lightblue",
font_weight=900,
padding=".5em",
))>$(log.text)</div>")
for log in logs
))")
👀 Reading hidden code
👀 Reading hidden code